<template>
<div>
  <button @click="onClickMe">点击我</button>
</div>
</template>
<script lang="ts" setup>
import {ref,defineComponent} from 'vue'
  const emit = defineEmits<{
    (e:'on-click'):void
  }>()
  const onClickMe = ()=>{
    emit('on-click')
  }

  
  defineExpose({
    onClickMe
  })
</script>